import request from '@/utils/request'

// 获得API 访问日志分页
export function getTableList(data) {
  return request({
    url: '/member/newsStudyInfo/page',
    method: 'post',
    data
  })
}

// 新闻模块、研究成果模块批量操作
export function updateBatch(data) {
  return request({
    url: '/member/newsStudyInfo/updateBatch',
    method: 'put',
    data
  })
}

// 研究成果 - 置顶 /admin-api/member/newsStudyInfo/updateTopping
export function topping(data) {
  return request({
    url: '/member/newsStudyInfo/updateTopping',
    method: 'put',
    params: data
  })
}
// 研究成果 - 设置月榜 - 月榜列表
export function getNewsStudyRankingList(data) {
  return request({
    url: '/member/newsStudyInfo/getNewsStudyRankingList',
    method: 'get',
    params: data
  })
}
// 研究成果 - 榜单排序
export function updateRankingInfoSort(data) {
  return request({
    url: '/member/newsStudyInfo/updateRankingInfoSort',
    method: 'PUT',
    data
  })
}

// /admin-api/member/newsStudyInfo/deleteNewsRankingInfo
// 研究成果 - 批量不纳入榜单
export function deleteNewsRankingInfo(data) {
  return request({
    url: '/member/newsStudyInfo/deleteNewsRankingInfo',
    method: 'delete',
    data
  })
}
// /admin-api/member/newsStudyInfo/create
export function create(data) {
  return request({
    url: '/member/newsStudyInfo/create',
    method: 'post',
    data
  })
}

// /admin-api/member/newsStudyType/page
export function getColumnList(data) {
  return request({
    url: '/member/newsStudyType/page',
    method: 'post',
    data
  })
}

// 编辑回显
export function getNewsStudyInfo(data) {
  return request({
    url: '/member/newsStudyInfo/get',
    method: 'get',
    params: data
  })
}

// /admin-api/member/newsStudyType/page
export function newsStudyTypeList(data) {
  return request({
    url: '/member/newsStudyType/page',
    method: 'post',
    data
  })
}
// 删除成果类型
export function newsStudyTypeDelete(data) {
  return request({
    url: '/member/newsStudyType/delete',
    method: 'DELETE',
    params: data
  })
}

// 创建成果类型
export function createNewsStudyType(data) {
  return request({
    url: '/member/newsStudyType/create',
    method: 'post',
    data
  })
}

// /admin-api/member/newsStudyInfo/update
export function updateNewsStudyInfo(data) {
  return request({
    url: '/member/newsStudyInfo/update',
    method: 'put',
    data
  })
}

// 上下架
export function changeStatus(data) {
  return request({
    url: '/member/newsStudyType/changeStatus',
    method: 'put',
    data
  })
}

// /admin-api/member/newsStudyType/update

export function updateNewsStudyType(data) {
  return request({
    url: '/member/newsStudyType/update',
    method: 'put',
    data
  })
}

// /admin-api/member/newsStudyType/recoveryPage
export function recoveryPage(data) {
  return request({
    url: '/member/newsStudyType/recoveryPage',
    method: 'post',
    data
  })
}

// 还原回收站
export function updateBatchType(data) {
  return request({
    url: '/member/newsStudyType/updateBatch',
    method: 'put',
    data
  })
}

// 类型排序
export function updateNewsStudyTypeSort(data) {
  return request({
    url: '/member/newsStudyType/updateNewsStudyTypeSort',
    method: 'put',
    data
  })
}
